/**
 * 
 */
package niuke;

import java.util.HashSet;
import java.util.Scanner;

/**
 * @author zhongfang
 *
 */
public class 黑化的牛牛 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner=new Scanner(System.in);
		String string=scanner.nextLine();
		HashSet<String> sets=new HashSet<>();
		for (int i = 0; i < string.length(); i++) {
			sets.add(string.substring(0, i)+string.substring(i+1));
		}
		System.out.println(sets.size());
	}

}
